Skip to content

Remove 'register' type qualifier #6980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2021
Merged

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented May 13, 2021

The compiler should be smart enough to optimize this on its own.

The compiler should be smart enough to optimize this on its own.
# pragma GCC diagnostic ignored "-Wvolatile-register-var"
register zend_execute_data* volatile execute_data __asm__(ZEND_VM_FP_GLOBAL_REG);
# pragma GCC diagnostic warning "-Wvolatile-register-var"
zend_execute_data* volatile execute_data __asm__(ZEND_VM_FP_GLOBAL_REG);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are global registers and should stay.

@Girgias Girgias merged commit aca6aef into php:master May 14, 2021
@Girgias Girgias deleted the remove-register-qualifier branch May 14, 2021 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants